<?php

declare(strict_types=1);

namespace Plugin\Attractions\AttractionManagement\Model;

use Hyperf\Database\Model\Model;

/**
 * @property int $id
 * @property int $spot_id
 * @property int $user_id
 * @property string $remark
 * @property int $score
 */
class AttractionScore extends Model
{
    /**
     * The table associated with the model.
     * 
     * @var string
     */
    protected ?string $table = 'attraction_spot_remark';

    /**
     * The attributes that are mass assignable.
     * 
     * @var array
     */
    protected array $fillable = ['spot_id', 'user_id', 'remark', 'score'];

    /**
     * The attributes that should be cast to native types.
     * 
     * @var array
     */
    protected array $casts = [
        'id' => 'integer',
        'spot_id' => 'integer',
        'user_id' => 'integer',
        'score' => 'integer',
    ];
}